package cn.iocoder.yudao.module.system.controller.admin.appversion.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - App版本控制分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppVersionPageReqVO extends PageParam {

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "公司ID", example = "11561")
    private Long deptId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "平台")
    private String platform;

    @Schema(description = "更新日志")
    private String updateLog;

    @Schema(description = "版本名称", example = "赵六")
    private String versionName;

    @Schema(description = "内部版本号")
    private Integer versionCode;

    @Schema(description = "发布时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] publishTime;

    @Schema(description = "支持最低版本")
    private Integer minVersionCode;

    @Schema(description = "更新类型(1普通更新 2强制更新)", example = "2")
    private Integer updateType;

    @Schema(description = "下载地址", example = "https://www.iocoder.cn")
    private String downloadUrl;

}